<%@ Page Language="C#" Description="Homepage" debug="false" trace="false"%>
<%@ Import Namespace="whole"%>
<%@ Import Namespace="System.IO"%>
<%@ Import Namespace="System.Drawing"%>
<%@ Import Namespace="System.Drawing.Imaging"%>
<%@ Import Namespace="System.Diagnostics"%>
<%@ Import Namespace="System.Xml.XPath"%>
<%@ Import Namespace="System.Xml"%>

<html>
<head>
<LINK type="text/css" rel="stylesheet" href="main.css">
<meta http-equiv="Content-Type" Content="text/html; charset=UTF-8">
<title id="title" runat=server></title>
</head>
<body>

<%

	Response.Write("Start--><br/>");

	string source = "d:\\travaso.now\\dammela2\\imgs\\gallery\\splash\\S200523445456678G.jpg";
	string bg = "d:\\travaso.now\\dammela2\\temp\\imageprocessing\\pieces\\bg01.png";
	string final = "d:\\travaso.now\\dammela2\\temp\\final.jpg";

	Process process = new Process();
	process.StartInfo.FileName = "d:\\travaso.now\\dammela2\\temp\\z5.pl";
//	process.StartInfo.FileName = "convert";
	process.StartInfo.Arguments = source +" "+ bg +" "+ final;
	process.StartInfo.CreateNoWindow = true;
//	process.StartInfo.UseShellExecute = false;
//	process.StartInfo.WorkingDirectory = "c:\\tmp.i\\";

	process.Start();

	Response.Write("<--End<br/>");

%>

</body>
</html>